//
//  StoreInfoCCell.m
//  com.modada.new
//
//  Created by ferver7 on 2019/5/7.
//  Copyright © 2019 ferver7. All rights reserved.
//

#import "StoreInfoCCell.h"

@implementation StoreInfoCCell

-(void)reloadViewForModel:(StoreInfoItem *)itemModel{
    self.storeNameLabel.text = itemModel.storeName;
    if ([itemModel.type isEqualToString:@"1"]) {
        self.typeLabel.text = @"商家";
    }else{
        self.typeLabel.text = @"专营";
    }
    self.timeLabel.text = [NSString stringWithFormat:@"(营业时间:%@)",itemModel.businessHours];
    self.totalSalesLabel.text = itemModel.totalSales;
    self.distanceLabel.text = [NSString stringWithFormat:@"距商家:%@km",itemModel.distance];
    self.addressLabel.text = [NSString stringWithFormat:@"%@%@%@%@",itemModel.province,itemModel.city,itemModel.county,itemModel.detailAddress];
}
- (IBAction)phoneAction:(id)sender {
    self.phoneActionBlock();
}
- (IBAction)daoHangAction:(id)sender {
    self.daoHangActionBlock();
}

@end
